package com.nbot.server.mapper.master;

import com.nbot.server.domain.UserRoleDO;

import java.util.List;
import java.util.Map;

/**
 * Created by lovewinner on 2018/6/6.
 */
public interface UserRoleMapper {

    UserRoleDO get(Long id);

    List<UserRoleDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(UserRoleDO userRole);

    int update(UserRoleDO userRole);

    int remove(Long id);

    int batchRemove(Long[] ids);

    List<Long> listRoleId(Long userId);

    int removeByUserId(Long userId);

    int removeByRoleId(Long roleId);

    int batchSave(List<UserRoleDO> list);

    int batchRemoveByUserId(Long[] ids);
}
